#pragma once

#include <windows.h>
#include <stdlib.h>
#include <iostream>
#include "resource2.h"

class Dialogs {
private:
	HWND hWndParent, myhWnd;
	HINSTANCE hInst;
	bool succes;
protected:
public:
	Dialogs(HWND parent = 0, HINSTANCE hInstance = 0);
	void Init(HWND parent , HINSTANCE hInstance );

	float resX, resY, resZ;
	float res;

	bool GetParametr();
	bool Get3Parameters();

	static void CALLBACK Wnd3Proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
	static void CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
	
	LRESULT OnWnd3Proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
	LRESULT OnWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
};